package com.joinway.framework.data.jdbc.bean;

import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import com.joinway.framework.bean.domain.constant.SqlConstants;

@ApiObject(name = "CriteriaItem", description = "", show=false)
public class CriteriaItem extends FieldItem {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiObjectField(description="查询字段类型，默认为text",required=false,format="text,date,number") 
	private String type = SqlConstants.DataType.Text;
	
	@ApiObjectField(description="查询或更新字段值，可以是mysql内置关键字，支持current_timestamp/current_time/now()") 
	private Object value;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
}
